﻿using System;
using System.Collections.Generic;
using System.Text;
using yb.commerce.DAL;
using yb.commerce.Model;

namespace yb.commerce.BLL
{
    public class ModuleBusiness
    {
        public bool Add(Module module)
        {
            return new ModuleDAO().Add(module);
        }

        public bool Delete(int Id)
        {
            return new ModuleDAO().Delete(Id);
        }

        public bool Update(Module module)
        {
            return new ModuleDAO().Update(module);
        }

        public Module GetEntity(int Id)
        {
            return new ModuleDAO().GetEntity(Id);
        }

        public DataRecordTable GetList(string fieldList, string orderField, bool orderBy, int pageIndex, int pageSize, string where)
        {
            return new ModuleDAO().GetList(fieldList, orderField, orderBy, pageIndex, pageSize, where);
        }
    }
}
